import Vue from "vue";
import Vant from "vant";
import "vant/lib/index.css";
import App from "./App.vue";
import router from "./router/index";
import VueLazyload from 'vue-lazyload' //懒加载
import "./style/index.less";
import $axios from "@/utils/request";
import '@/filter/index';
import store from './store/index';
// rem
import 'amfe-flexible';
Vue.prototype.$axios = $axios;

//导入封装后的轻提示
import { loading, clear } from './utils/index'
Vue.prototype.$loading = loading;
Vue.prototype.$clear = clear;

console.log('环境', process.env.VUE_APP_URL)
Vue.use(Vant);

//懒加载配置
Vue.use(VueLazyload, {
  loading: './img/load.gif'
});

Vue.config.productionTip = false;

new Vue({
  store,
  router,
  render: h => h(App)
}).$mount("#app");